import { ref } from 'vue'

export default () => {
  // @ts-expect-error Need Error Masking  
  const tableData: Ref<any[]> = ref([])
  const items: Ref<any[]> = ref([])
  const lineData = ref({})
  const lineOptions = ref({})
  const menu1 = ref()
  const menu2 = ref()

  function formatCurrency(value) {
    // @ts-expect-error Need Error Masking
    return value.toLocaleString('en-US', { style: 'currency', currency: 'USD' });
  }

  return {
    tableData, lineData, items, lineOptions, menu1, menu2, formatCurrency,
  }
}
